<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8" language="java"
	import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/page/base.jsp"%>
<%@ taglib prefix="d" uri="/doone-comm-ui-tags"%>
<html>
	<head>
		<title>评论 管理</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link type="text/css" href="<%=path%>/manage/css/layout.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="<%=path%>/manage/css/Tooltip.css" />
        <link type="text/css" href="<%=path%>/manage/css/new_style.css" rel="stylesheet" />

		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery-1.4.4.min.js"></script>

		<script type="text/javascript"
			src="<%=path%>/manage/js/easyTooltip.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery-ui-1.8.11.custom.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.wysiwyg.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/hoverIntent.js"></script>
		<script type="text/javascript" src="<%=path%>/manage/js/superfish.js"></script>
		<script type="text/javascript" src="<%=path%>/manage/js/custom.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/My97DatePicker/WdatePicker.js"></script>
	</head>

	<script type="text/javascript">
	//評論信息删除
	function delPhoto(intPhotoId,resId,tarId) {
		if (confirm("慎重考虑是否确定删除该记录?删除后无法查看该条记录！！！")) {
			$.ajax({
				url : root + '/circle/deleteByPhotoId.action',
				method : 'post',
				data : {
					'intPhotoId' : intPhotoId,
					'tarId':tarId
				},
				success : function(data) {
				window.location.href=root+"/circle/getCirclePhotoInfo.action?resId="+resId+"&tarId="+tarId;
				},
				error : function(err) {
					if (err.responseText != '')
						alert(err.responseText);
					else
						alert("请求失败！");
				}
			});
		}
	}
</script>
	<body>
		<div>
			<p class="sitemap">
				当前位置：内容管理 > 活动管理
			</p>
			<h1>
				图片管理
			</h1>
			<div>
				<!-- Tabs -->
				<div id="tabs">
					<ul>
						<li>
							<a href="#tabs-1">图片管理</a>
						</li>

					</ul>
					<table class="fullwidth" cellpadding="0" cellspacing="0" border="0">
						<thead>
							<tr> 
							<td>缩略图</td>
							<td>主题</td>
							<td>操作</td>
							</tr>
						</thead>
						<tbody>
							<s:iterator value="resourcesinfo">
						
								<tr class="odd">
								   <td><img src="<%=serverUrl%><s:property value="mediaUrl"/>" width="100px" height="100px"></td>
								   <td><s:property value="title"/></td>
								   <td><a class="icon icon_delete" title="删除"  href="javascript:delPhoto(<s:property value="id"/>,<s:property value="targetId"/>,<s:property value="tarId"/>)"></a></td> 
								</tr>
							</s:iterator>
							
							<s:iterator value="conImgList">
							  <tr class="odd">
								   <td><img src="<s:property value="varImgUrl"/>" width="100px" height="100px"></td>
								   <td><s:property value="varImgName"/></td>
								   <td><a class="icon icon_delete" title="删除"  href="javascript:delPhoto(<s:property value="id"/>,<s:property value="targetId"/>,<s:property value="tarId"/>)"></a></td> 
								</tr>
							
							</s:iterator>
						</tbody>
					</table>
				</div>
				<a href="<%=path %>/acti/getCommentInit.action?tarId=<s:property value="tarId"/>" class="button">返回</a>
				<div align="right" style="float: right;">
					<d:page id="pagePhoto" template="details" skin="gray">
					</d:page>
				</div>
				</div>
				
		</div>
	</body>
</html>
